package 类和对象课堂练习.封装;

public class Zuoye032911 extends Zuoye03291{
    int dantou;
    public Zuoye032911(String name, int zhongliang, int gaodu,int dantou) {
        super(name, zhongliang, gaodu);
        this.dantou=dantou;
    }
    public void print(){
        System.out.println(name+"是一架战斗机");
        System.out.println("配备有"+dantou+"导弹");
        super.print();
    }
}
